﻿@model List<CMS.Web.Engine.WidgetCategoryModel>
 
@using (Html.BeginForm())
{       
    foreach (var category in Model) 
    {    
        <div style="font-weight: bold; border: 1px solid #f4f4f4; background-color: #f9f9f9; padding: 5px;">@category.Name</div>
        foreach (var widget in category.Widgets) 
        {  
            <table>
                <tr style="vertical-align: top;">
                    <td><input type="checkbox" name="guids" value="@widget.Guid.ToString()" id="widget@(widget.Guid.ToString("N"))" /></td>
                    <td><label for="widget@(widget.Guid.ToString("N"))" style="font-weight: bold;">@widget.Name</label>
                        <br/>@widget.Description</td>
                </tr>                              
            </table>  
        }
    } 
    @Html.Hidden("page");   
    @Html.Hidden("zone");           
} 